# Maintainer: Bradley Saulteaux <bradsoto@gmail.com>
pkgname=j4-dmenu-desktop
pkgver=2.18
pkgrel=0
pkgdesc="A fast desktop menu"
options="!check" # Requires a desktop-style system layout not present in builders
url="https://github.com/enkore/$pkgname"
arch="all"
license="GPL-3.0-only"
depends="dmenu"
makedepends="cmake git"
source="$pkgname-$pkgver.tar.gz::$url/archive/r$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-r$pkgver

build() {
	cmake -DCMAKE_INSTALL_PREFIX=/usr .
	make
}

check() {
	# Test depends on /usr/share/applications existing on the system
	make test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f8b0c825d567d60da0fb418e6f0b24a6d9daa9fb142b194b0a8b249303f4e09b6694fce72bf031007ac67253e488fc7666d4ba7beb032bc74cc2a32aca0f6c96  j4-dmenu-desktop-2.18.tar.gz"
